package com.sportcardio.sportcardioui;

import java.io.IOException;
import java.net.URL;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MainApplication extends Application {

    @Override
    public void start(Stage primaryStage) throws IOException {
        String protocol = "file:///";
        String resourceDir = "/src/main/resources/";
        String fxmlPath = protocol + System.getProperty("user.dir").replace("\\", "/") + resourceDir + "fxml/resources/Sample.fxml";
       
        URL localUri = new URL(fxmlPath);
        Parent root = FXMLLoader.load(localUri);
        
        primaryStage.setTitle("FXML GridPane Demo");
        primaryStage.setScene(new Scene(root));
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
